01: #! /usr/bin/python
02: 
03: """
04: This is a test for the handling of
05: comments and string literals in Python
06: """
07: 
08: "And this is a string meant as comment"
09: 
10: def test():                # The test routine
11:   '''
12:   It does nothing but printing different strings
13:   '''
14: 
15:   print "This is the first test",
16:   print 'and this the second'
17: 
18:   'Here start the multi-lined outputs'
19:   print """
20: Here we have
21: a multi-line
22: string.
23: """
24:   print '''
25: And this is a
26: second one
27: '''
28:   # End of printing
29:   pass                        # A NOP at last
30: 
31: """
32: """
33: 'And here the fun starts'
34: test()
35: 
36: table = { 'S'  : ['5'],
37:  'a'  : ['4','a','@'],
38:  'b'  : ['8','B'],
39:  "ps" : ["Pz"],
40:  'ss' : ['5S','S5'],
41:  'es' : ['3Z','3z'],
42:  'ou' : ['00'] }